﻿@{
    Layout = "~/Views/Shared/_LayoutBase.cshtml";
}
@section HeaderScripts{
    <script type="text/javascript">
        $(document).ready(function () {

            $(document).ready(function () {
                $('.tradingScrollOuter').tinyscrollbar({
                    size: 'auto'
                });
            });

            $(".homeContentTabsNewsSliderNavLeft a:first").addClass("homeJcliteNavActive");
            $(".homeContentTabsNewsSliderNavRight a:first").addClass("homeJcliteNavActive");
            $(".homeContentTabsNewsSliderTopStories").jCarouselLite({
                visible: 1,
                auto: 6000,
                speed: 200,
                hoverPause: true,
                circular: true,
                btnGo:
		        [".NewsSliderTopStories1", ".NewsSliderTopStories2",
		        ".NewsSliderTopStories3", ".NewsSliderTopStories4",
		        ".NewsSliderTopStories5", ".NewsSliderTopStories6",
		        ".NewsSliderTopStories7", ".NewsSliderTopStories8",
		        ".NewsSliderTopStories9", ".NewsSliderTopStories10",
		        ".NewsSliderTopStories11", ".NewsSliderTopStories12"],
                afterEnd: function (a, to, btnGo) {

                    if (btnGo.length <= to) {
                        to = 0;
                    }
                    $(".homeContentTabsNewsSliderNavLeft a").removeClass("homeJcliteNavActive");
                    $(".homeContentTabsNewsSliderNavLeft").find(btnGo[to]).addClass("homeJcliteNavActive");
                }
            });
            $(".homeContentTabsNewsSliderGkfxNews").jCarouselLite({
                visible: 1,
                auto: 6000,
                speed: 200,
                hoverPause: true,
                circular: true,
                btnGo:
		[".NewsSliderGkfxNewsNav1", ".NewsSliderGkfxNewsNav2",
		".NewsSliderGkfxNewsNav3", ".NewsSliderGkfxNewsNav4",
		".NewsSliderGkfxNewsNav5", ".NewsSliderGkfxNewsNav6",
		".NewsSliderGkfxNewsNav7", ".NewsSliderGkfxNewsNav8",
		".NewsSliderGkfxNewsNav9", ".NewsSliderGkfxNewsNav10",
		".NewsSliderGkfxNewsNav11", ".NewsSliderGkfxNewsNav12"],
                afterEnd: function (a, to, btnGo) {
                    if (btnGo.length <= to) {
                        to = 0;
                    }
                    $(".homeContentTabsNewsSliderNavRight a").removeClass("homeJcliteNavActive");
                    $(".homeContentTabsNewsSliderNavRight").find(btnGo[to]).addClass("homeJcliteNavActive");
                }
            });

            $(".homeContentTabsEconomicCallender").jCarouselLite({
                visible: 1,
                auto: 6000,
                speed: 200,
                hoverPause: true,
                circular: true,
                btnGo:
		[".EconomicTopStories1", ".EconomicTopStories2",
		".EconomicTopStories3", ".EconomicTopStories4",
		".EconomicTopStories5", ".EconomicTopStories6",
		".EconomicTopStories7", ".EconomicTopStories8",
		".EconomicTopStories9", ".EconomicTopStories10",
		".EconomicTopStories11", ".EconomicTopStories12"],
                afterEnd: function (a, to, btnGo) {
                    if (btnGo.length <= to) {
                        to = 0;
                    }
                    $(".homeContentTabsEconomicSliderNavMiddle a").removeClass("homeJcliteNavActive");
                    $(".homeContentTabsEconomicSliderNavMiddle").find(btnGo[to]).addClass("homeJcliteNavActive");
                }
            });

        });
        jQuery(function ($) {
            $('ul#items').easyPaginate({
                step: 1
            });
        });   
    </script>
}
    <script src="@Url.Content("~/Scripts/StockTicker.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.signalR.js")"  type="text/javascript"></script>
    <script src="@Url.Content("~/signalr/hubs")"  type="text/javascript"></script>
<link rel="stylesheet" href="@Url.Content("~/content/themes/default/css/homeBanner.css")" />
<div class="homeContent">
    @RenderBody()
    <div class="wrapper">
        <div class="homeBanner">
            <div class="bannerPermanentBox">
                @Html.Partial("CommonPartials/MainPage.OpenAccountBox")
            </div>
            @Html.Partial("CommonPartials/MainPage.Slider")
        </div>
        @Html.Position("Position000")
        <div class="contentInner">
            @Html.Position("Holder1")
            @Html.Partial("CommonPartials/MainPage.ContentBoxes")
            @Html.Partial("CommonPartials/MainPage.ContentTabs")
            @Html.Partial("CommonPartials/MainPage.ContentApps")
        </div>
        <div class="sideBar">
            @Html.Partial("CommonPartials/MainPage.SideContent.LiveChat")
            @Html.Partial("CommonPartials/MainPage.SideContent.Analysis")
            @Html.Action("Index", "CurrencyConverter", new { area = "Common" })
            @Html.Action("Index", "Calculator", new { area = "Common" })
            @Html.Partial("CommonPartials/MainPage.SideContent.MobileTrader")
        </div>
    </div>
</div>
<script type="text/javascript" src="@Url.Content("~/content/themes/default/js/homeMain.js")"></script>
